package com.ruoyi.material.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.material.mapper.MaterialEnvMonitorMapper;
import com.ruoyi.material.domain.MaterialEnvMonitor;
import com.ruoyi.material.service.IMaterialEnvMonitorService;
import com.ruoyi.common.core.text.Convert;

/**
 * 焊材库环境监测Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-11
 */
@Service
public class MaterialEnvMonitorServiceImpl implements IMaterialEnvMonitorService 
{
    @Autowired
    private MaterialEnvMonitorMapper materialEnvMonitorMapper;

    /**
     * 查询焊材库环境监测
     * 
     * @param id 焊材库环境监测主键
     * @return 焊材库环境监测
     */
    @Override
    public MaterialEnvMonitor selectMaterialEnvMonitorById(Long id)
    {
        return materialEnvMonitorMapper.selectMaterialEnvMonitorById(id);
    }

    /**
     * 查询焊材库环境监测列表
     * 
     * @param materialEnvMonitor 焊材库环境监测
     * @return 焊材库环境监测
     */
    @Override
    public List<MaterialEnvMonitor> selectMaterialEnvMonitorList(MaterialEnvMonitor materialEnvMonitor)
    {
        return materialEnvMonitorMapper.selectMaterialEnvMonitorList(materialEnvMonitor);
    }

    /**
     * 新增焊材库环境监测
     * 
     * @param materialEnvMonitor 焊材库环境监测
     * @return 结果
     */
    @Override
    public int insertMaterialEnvMonitor(MaterialEnvMonitor materialEnvMonitor)
    {
        return materialEnvMonitorMapper.insertMaterialEnvMonitor(materialEnvMonitor);
    }

    /**
     * 修改焊材库环境监测
     * 
     * @param materialEnvMonitor 焊材库环境监测
     * @return 结果
     */
    @Override
    public int updateMaterialEnvMonitor(MaterialEnvMonitor materialEnvMonitor)
    {
        return materialEnvMonitorMapper.updateMaterialEnvMonitor(materialEnvMonitor);
    }

    /**
     * 批量删除焊材库环境监测
     * 
     * @param ids 需要删除的焊材库环境监测主键
     * @return 结果
     */
    @Override
    public int deleteMaterialEnvMonitorByIds(String ids)
    {
        return materialEnvMonitorMapper.deleteMaterialEnvMonitorByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除焊材库环境监测信息
     * 
     * @param id 焊材库环境监测主键
     * @return 结果
     */
    @Override
    public int deleteMaterialEnvMonitorById(Long id)
    {
        return materialEnvMonitorMapper.deleteMaterialEnvMonitorById(id);
    }
}
